// area of a circle using C++/classes/outside class declaration

# include <iostream.h>
# include <conio.h>

class Circle {

  float radius;

public:

  void getRadius();
  void printArea();

};

 void Circle::getRadius() {
    cout << "Enter the radius: ";
    cin >> radius;
  }

  void Circle::printArea() {
    cout << "Area of the circle is: " << radius * 3.14f;
  }

void main() {
  clrscr();
  Circle circle;
  circle.getRadius();
  circle.printArea();
  getch();
}